﻿using BaseData.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace BaseData.RazorLib.Services
{
    public interface ICalculateUnitService
    {
        Task<PaginatedResult<CalculateUnitInfoResponseDto>?> QueryCalculateUnitsByPage(CalculateUnitSearchRequestDto searchRequestDto);
    
        Task<Result<CalculateUnitInfoResponseDto>?> UpdateCalculateUnit(int key, CalculateUnitEditRequestDto editRequestDto);
    
        Task<Result<CalculateUnitInfoResponseDto>?> CreateCalculateUnit(CalculateUnitEditRequestDto editRequestDto);
    
        Task<Result<CalculateUnitInfoResponseDto>?> GetCalculateUnit(int key);

        Task<Result<IList<CalculateUnitInfoResponseDto>>?> QueryCalculateUnits(CalculateUnitSearchRequestDto searchRequestDto);
    }
}